deviceId=$1
appName=$2
count=$3

currentDir=$(cd "$(dirname "$0")"; pwd)
echo $currentDir

if [ $# != 3 ]; then
	echo "sh monkey.sh 4df742f8263bcf3d meilishuo/mogujie monkeyCount"
	exit 1;
fi

adb -s $1  shell monkey -p com.${appName} -v -v --throttle 1000 --ignore-crashes --ignore-timeouts --ignore-security-exceptions ${count} > ${currentDir}/monkey-${appName}.log
